<div id="gamelist">
  {% if games %}
    Go to a game's room to continue the game.
    <table>
      <tr>
        <th>Room</th>
        <th>White player</th>
        <th>Black player</th>
        <th>Result</th>
        <th>Started</th>
      </tr>
    {% for game in games %}
      <tr class="{% cycle odd,even %}">
        <td><a href="/room/{{game.room.key}}">{{game.room.name}}</a></td>
        <td>{{game.white.nickname}}</td>
        <td>{{game.black.nickname}}</td>
        <td>{{game.result|slice:"5:"}}</td>
        <td>{{game.started|date:"d/m/Y"}} at {{game.started|date:"H:i"}}</td>
        <td><a href="/game/replay/{{game.key}}">Replay</a></td>
      </tr>
    {% endfor %}
    </table>
  {% else %}
    No current game.
  {% endif %}
</div>